package game.roles.enemys;

import game.frame.MainFrame;
import game.roles.gifts.Gift1;
import game.utils.ImageChange;

import java.awt.*;
import java.util.Random;

/**
 * @author liuyulai
 * Created with IntelliJ IDEA.
 * Date: 21.5.10
 * Time: 13:50
 * Description: 第三种敌人
 */
public class Solider3 extends EnemyRole {

    public static Image[] solider3Images;

    private ImageChange rm = new ImageChange(3);

    public Solider3() {
        super(2000 + new Random().nextInt(200), 400 + new Random().nextInt(100), 160, 160, 150, 50);
    }

    @Override
    public void rolesMove() {
        this.x -= 4;
        this.img = rm.change(solider3Images);
    }
}
